package com.sjx.boundarycallback.dao;

import androidx.paging.DataSource;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.sjx.boundarycallback.api.User;

import java.util.List;

@Dao
public interface UserDao {

    @Insert
    void insertUsers(List<User> users);

    @Query("DELETE FROM user")
    void clear();

    @Query("Select * from user")
    DataSource.Factory<Integer, User> getUserList();

}
